package com.six666.medicaldevicetestingsystem.dto;

import com.six666.medicaldevicetestingsystem.entity.Pair;
import com.six666.medicaldevicetestingsystem.entity.UserAccount;
import lombok.Data;

@Data
public class Login_DTO {
    private int res;
    private UserAccount user;
    public Login_DTO() {
        res = 0;
        user = null;
    };
    public Login_DTO(int res, UserAccount user) {
        this.res = res;
        this.user = user;
    }
    public Login_DTO(Pair<Integer, UserAccount> pair) {
        this.res = pair.getFirst();
        this.user = pair.getSecond();
    }
}
